//
//  PBOrderHomeTopCell.m
//  PBHomeDemo
//
//  Created by Playboy on 2018/1/12.
//  Copyright © 2018年 tmkj. All rights reserved.
//

#import "PBOrderHomeTopCell.h"

@interface PBOrderHomeTopCell ()
@property (strong, nonatomic) IBOutlet UIImageView *coverImageView;
@property (strong, nonatomic) IBOutlet UILabel *mainLabel;
@property (strong, nonatomic) IBOutlet UILabel *desLabel;
@property (strong, nonatomic) IBOutlet UILabel *priceLabel;


@end

@implementation PBOrderHomeTopCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)refreshWithModel:(PBHomeDetailModel *)model {
    [self.coverImageView sd_setImageWithURL:[NSURL URLWithString:model.cover] placeholderImage:nil];
    self.mainLabel.text = model.name;
    self.desLabel.text = model.type;
    self.priceLabel.text = [NSString stringWithFormat:@"%@元/月",model.rent];
}

@end
